<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <f:view>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <f:loadBundle var="mes" basename="messages" />
            <title>
                <ui:insert name="title">UMS</ui:insert>
            </title>
            <p:resources/>
            <link rel="stylesheet" type="text/css" href="/UMS/css/main.css" />
        </head>
        <body>
            <div id="outerWrapper">
                <ui:insert name="menu">
                    <div id="header">
                        <a4j:form id="menuForm">
                            <rich:toolBar>
                                <rich:menuItem action="#{menuBean.treeMenuClick}" value="Дерево"/>
                                <rich:menuItem action="#{menuBean.adminMenuClick}" value="Адмінка"
                                               rendered="#{userBean.currentUserRole == 'ADMIN'}"/>

                                <rich:toolBarGroup location="right">
                                    <rich:menuItem value="Вихід" action="#{userBean.doExit}" onmouseup="parent.location='www.google.com'"/>
                                </rich:toolBarGroup>
                            </rich:toolBar>
                        </a4j:form>
                    </div>
                </ui:insert>
                <div id="contentWrapper">
                    <ui:insert name="leftColumn" />
                    <div id="content"><ui:insert name="content" /></div>
                    <br />
                </div>
                <div id="footer"><ui:insert name="footer" /></div>
            </div>
        </body>
    </f:view>
</html>
